//统一管理项目用户接口
import request from '@/utils/request'
import type { loginForm, loginRespData, userInfoResp } from './type'
//统一管理接口
enum API {
  LOGIN_URL = '/user/login',
  USERINFO_URL = '/user/info',
}
//暴露请求函数
//登录请求接口
export const reqLogin = (data: loginForm) => request.post<any, loginRespData>(API.LOGIN_URL, data)
//暴露获取用户信息接口
export const reqUserInfo = () => request.get<any, userInfoResp>(API.USERINFO_URL)
